package com.woniu.cinema.vo;

import com.woniu.cinema.domain.HallMovie;
import com.woniu.cinema.domain.Movie;
import com.woniu.cinema.domain.MovieArea;
import com.woniu.cinema.domain.MovieType;

import java.util.List;

public class MovieVo extends Movie {

    private MovieArea movieAreaObj;

    private List<MovieType> movieTypeList;

    private List<HallMovie> hallMovieList;

//    private String movieAreaStr;

//    public void setMovieAreaStr(String movieAreaStr) {
//        this.movieAreaStr = movieAreaStr;
//    }
//
    public String getMovieAreaStr(){
       return movieAreaObj.getAreaName();
    }


    public String getMovieTypeStr(){
        StringBuilder stringBuilder=new StringBuilder();
        for (MovieType movieType : movieTypeList) {
            stringBuilder.append(movieType.getTypeName()).append(" ");
        }
        return stringBuilder.toString();
    }


    public MovieArea getMovieAreaObj() {
        return movieAreaObj;
    }

    public void setMovieAreaObj(MovieArea movieAreaObj) {
        this.movieAreaObj = movieAreaObj;
    }

    public List<MovieType> getMovieTypeList() {
        return movieTypeList;
    }

    public void setMovieTypeList(List<MovieType> movieTypeList) {
        this.movieTypeList = movieTypeList;
    }

    public List<HallMovie> getHallMovieList() {
        return hallMovieList;
    }

    public void setHallMovieList(List<HallMovie> hallMovieList) {
        this.hallMovieList = hallMovieList;
    }
}
